home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / prog / inter35b.zip / MEMORY.LST < prev    next >
File List  |  1993-05-08  |  24KB  |  542 lines

  1. [This file was provided by Robin Walker.  --Ralf]
  2. Last Update: 5/8/93
  3.  
  4. Format of BIOS Data Segment at segment 40h:
  5.         {items in curly braces not documented by IBM}
  6. Offset    Size    Description
  7.  00h    WORD    Base I/O address of 1st serial I/O port, zero if none
  8.  02h    WORD    Base I/O address of 2nd serial I/O port, zero if none
  9.  04h    WORD    Base I/O address of 3rd serial I/O port, zero if none
  10.  06h    WORD    Base I/O address of 4th serial I/O port, zero if none
  11.             Note: Above fields filled in turn by POST as it finds serial
  12.             ports. POST never leaves gaps. DOS and BIOS serial device
  13.             numbers may be redefined by re-assigning these fields.
  14.  08h    WORD    Base I/O address of 1st parallel I/O port, zero if none
  15.  0Ah    WORD    Base I/O address of 2nd parallel I/O port, zero if none
  16.  0Ch    WORD    Base I/O address of 3rd parallel I/O port, zero if none
  17.  0Eh    WORD    [non-PS] Base I/O address of 4th parallel I/O port, zero if none
  18.         [PS] Segment of Extended BIOS Data Segment
  19.             Note: Above fields filled in turn by POST as it finds
  20.             parallel ports. POST never leaves gaps. DOS and BIOS
  21.             parallel device numbers may de redefined by re-assigning
  22.             these fields.
  23.  10h    WORD    Installed hardware:
  24.             bits 15-14: number of parallel devices
  25.             bit        13: [Conv] Internal modem
  26.             bit        12: reserved
  27.             bits 11- 9: number of serial devices
  28.             bit         8: reserved
  29.             bits  7- 6: number of diskette drives minus one
  30.             bits  5- 4: Initial video mode:
  31.                     00b = EGA,VGA,PGA
  32.                     01b = 40 x 25 color
  33.                     10b = 80 x 25 color
  34.                     11b = 80 x 25 mono
  35.             bit         3: reserved
  36.             bit         2: [PS] =1 if pointing device
  37.                 [non-PS] reserved
  38.             bit         1: =1 if math co-processor
  39.             bit         0: =1 if diskette available for boot
  40.  12h    BYTE    [Conv] POST status
  41.         [AT] {Manufacturing test initialisation flags}
  42.  13h    WORD    Base memory size in kbytes (0-640)
  43.  15h    BYTE    [AT] {Manufacturing test scratch pad}
  44.  16h    BYTE    [AT] {Manufacturing test scratch pad}
  45.         [PS/2 Mod 30] BIOS control flags
  46.  17h    BYTE    Keyboard status flags 1:
  47.             bit 7 =1 INSert active
  48.             bit 6 =1 Caps Lock active
  49.             bit 5 =1 Num Lock active
  50.             bit 4 =1 Scroll Lock active
  51.             bit 3 =1 either Alt pressed
  52.             bit 2 =1 either Ctrl pressed
  53.             bit 1 =1 Left Shift pressed
  54.             bit 0 =1 Right Shift pressed
  55.  18h    BYTE    Keyboard status flags 2:
  56.             bit 7 =1 INSert pressed
  57.             bit 6 =1 Caps Lock pressed
  58.             bit 5 =1 Num Lock pressed
  59.             bit 4 =1 Scroll Lock pressed
  60.             bit 3 =1 Pause state active
  61.             bit 2 =1 Sys Req pressed
  62.             bit 1 =1 Left Alt pressed
  63.             bit 0 =1 Left Ctrl pressed
  64.  19h    BYTE    Keyboard: Alt-nnn keypad workspace
  65.  1Ah    WORD    Keyboard: ptr to next character in keyboard buffer
  66.  1Ch    WORD    Keyboard: ptr to first free slot in keyboard buffer
  67.  1Eh 16 WORDs    Keyboard circular buffer (but see 80h, 82h for override)
  68.  3Eh    BYTE    Diskette recalibrate status:
  69.             bit 7 =1 Diskette hardware interrupt occurred
  70.             bits 6-4 reserved
  71.             bit 3 =1 Recalibrate diskette 3
  72.             bit 2 =1 Recalibrate diskette 2
  73.             bit 1 =1 Recalibrate diskette 1
  74.             bit 0 =1 Recalibrate diskette 0
  75.  3Fh    BYTE    Diskette motor status:
  76.             bit 7 =1 current operation is write or format
  77.               =0 current operation is read or verify
  78.             bit 6    reserved
  79.             bits 5-4 diskette drive number selected (0-3)
  80.             bit 3 =1 diskette 3 motor on
  81.             bit 2 =1 diskette 2 motor on
  82.             bit 1 =1 diskette 1 motor on
  83.             bit 0 =1 diskette 0 motor on
  84.  40h    BYTE    Diskette motor turn-off time-out count
  85.  41h    BYTE    Diskette last operation status (0 = OK)
  86.             bit 7 =1 drive not ready
  87.             bit 6 =1 seek error
  88.             bit 5 =1 general controller failure
  89.             bits 4-0:
  90.                 00h no error
  91.                 01h invalid request
  92.                 02h address mark not found
  93.                 03h write-protect error
  94.                 04h sector not found
  95.                 06h diskette change line active
  96.                 08h DMA overrun
  97.                 09h DMA across 64k boundary
  98.                 0Ch media type unknown
  99.                 10h CRC error on read
  100.  42h  7 BYTEs    Diskette/Fixed disk status/command bytes
  101.     42h BYTE    XT: command byte to hard disk controller
  102.         AT: write precompensation cylinder number / 4
  103.     43h    BYTE    XT: bit 5 = drive number, bits 3-0=head number
  104.         AT: sector count
  105.     44h BYTE    XT: bits 6,7 = high bits of track, bits 5-0 = start sector-1
  106.         AT: starting sector
  107.     45h BYTE    low byte of track number
  108.     46h BYTE    XT: sector count
  109.         AT: high bits of track number
  110.     47h BYTE    XT: controlbyte from HD parameters (step rate,...)
  111.         AT: 101DHHHH, D=drive number, HHHH=head number
  112.     48h BYTE    XT: INT 13h subfunction number
  113.         AT: comand byte to hard disk controller
  114.  49h    BYTE    Video current mode
  115.  4Ah    WORD    Video columns on screen
  116.  4Ch    WORD    Video page (regen buffer) size in bytes
  117.  4Eh    WORD    Video current page start address in regen buffer
  118.  50h 16 BYTEs    Video cursor position (col, row) for eight pages, 0 based
  119.  60h    WORD    Video cursor type, 6845 compatible, hi=startline, lo=endline
  120.  62h    BYTE    Video current page number
  121.  63h    WORD    Video CRT controller base address: color=03D4h, mono=03B4h
  122.  65h    BYTE    Video current setting of mode select register 03D8h/03B8h
  123.  66h    BYTE    Video current setting of CGA palette register 03D9h
  124.  67h    DWORD    POST real mode re-entry point after certain resets
  125.  6Bh    BYTE    POST last unexpected interrupt
  126.  6Ch    DWORD    Timer ticks since midnight
  127.  70h    BYTE    Timer overflow, non-zero if has counted past midnight
  128.  71h    BYTE    Ctrl-Break flag: bit 7=1
  129.  72h    WORD    POST reset flag:
  130.             = 1234h if to bypass memory test (warm boot)
  131.             = 4321h [PS/2 MCA only] if to preserve memory
  132.             = 5678h [Conv] system suspended
  133.             = 9ABCh [Conv] manufacturing test mode
  134.             = ABCDh [Conv] POST loop mode
  135.             =    64h Burn-in mode
  136.  74h    BYTE    Fixed disk last operation status: {except ESDI drives}
  137.             00h no error
  138.             01h invalid function request
  139.             02h address mark not found
  140.             03h write protect error
  141.             04h sector not found
  142.             05h reset failed
  143.             06h diskette removed
  144.             07h drive parameter activity failed
  145.             08h DMA overrun
  146.             09h DMA data boundary error
  147.             0Ah bad sector flag detected
  148.             0Bh bad track detected
  149.             0Ch requested diskette media type not found
  150.             (PS/2 or extended BIOS only)
  151.             unsupported track
  152.             0Dh invalid number of sectors for Format
  153.             0Eh control data address mark detected
  154.             0Fh DMA arbitration level out of range
  155.             10h uncorrectable ECC or CRC error
  156.             11h ECC corrected data error
  157.             20h general controller failed
  158.             40h seek failed
  159.             80h time out
  160.             AAh drive not ready
  161.             BBh undefined error
  162.             CCh write fault on selected drive
  163.             E0h status error/error register is zero
  164.             FFh sense failed
  165.  75h    BYTE    Fixed disk: number of fixed disk drives
  166.  76h    BYTE    Fixed disk: control byte    {IBM document only for XT}
  167.         XT: hrad disk controller's I/O address (Western Digital)
  168.  77h    BYTE    Fixed disk: I/O port offset {IBM document only for XT}
  169.  78h  3 BYTEs    Parallel devices 1-3 time-out counters
  170.  7Bh    BYTE    parallel device 4 time-out counter [non-PS]
  171.         bit 5 set if Virtual DMA Spec supported [PS] (see INT 4B)
  172.  7Ch  4 BYTEs    Serial devices 1-4 time-out counters
  173.  80h    WORD    Keyboard buffer start as offset from segment 40h (normally 1Eh)
  174.  82h    WORD    Keyboard buffer end+1 as offset from segment 40h (normally 3Eh)
  175.         [XT BIOS dated 11/08/82 ends here]
  176.  84h    BYTE    Video EGA/MCGA/VGA rows on screen minus one
  177.  85h    WORD    Video EGA/MCGA/VGA character height in scan-lines
  178.  87h    BYTE    Video EGA/VGA control: [MCGA: =00h]
  179.             bit 7:  =1 if not to clear RAM (see INT 10h, AH=00h)
  180.             bits 6-5: RAM on adapter = (this field + 1) * 64K
  181.             bit 4:  reserved
  182.             bit 3:  =0 if EGA/VGA video system active, =1 if inactive
  183.             bit 2:  =1 if to wait for display enable (what means this?)
  184.             bit 1:  =0 for color or ECD monitor, =1 for mono monitor
  185.             bit 0:  =0 alphanumeric cursor emulation enabled, =1 not.
  186.                 When enabled, text mode cursor size (INT 10,AH=01h)
  187.                 settings looking like CGA ones are translated to
  188.                 equivalent EGA/VGA ones.
  189.  88h    BYTE    Video EGA/VGA switches: [MCGA: reserved]
  190.             bits 7-4: power-on state of feature connector bits 3-0
  191.             bits 3-0: configuration switches 4-1 (=0 on, =1 off)
  192.               Values as read:
  193.             0h Pri MDA,        Sec EGA+old color display 40 x 25
  194.             1h Pri MDA,        Sec EGA+old color display 80 x 25
  195.             2h Pri MDA,        Sec EGA+ECD normal mode (CGA emul)
  196.             3h Pri MDA,        Sec EGA+ECD enhanced mode
  197.             4h Pri CGA 40 x 25, Sec EGA mono display
  198.             5h Pri CGA 80 x 25, Sec EGA mono display
  199.             6h Pri EGA+old color display 40 x 25,  Sec MDA
  200.             7h Pri EGA+old color display 80 x 25,  Sec MDA
  201.             8h Pri EGA+ECD normal mode (CGA emul), Sec MDA
  202.             9h Pri EGA+ECD enhanced mode,           Sec MDA
  203.             Ah Pri EGA mono display,           Sec CGA 40 x 25
  204.             Bh Pri EGA mono display,           Sec CGA 80 x 25
  205.             When bit4 of 40h:89h is 0, VGA emulates 350-line EGA if
  206.             this byte is x3h or x9h, otherwise emulates 200-line CGA in
  207.             400-line double scan. VGA resets this byte to x9h after the
  208.             mode set.
  209.             See also note for next byte.
  210.  89h    BYTE    Video MCGA/VGA mode-set option control:
  211.             bits 7 and 4:
  212.             0 0  350-line mode requested
  213.             0 1  400-line mode at next mode set
  214.             1 0  200-line mode requested
  215.             1 1  reserved
  216.             Apparently VGA BIOS mode set disregards bit 7 and uses
  217.             byte 40h:88h to determine 200/350 selection when bit 4
  218.             is zero. Presumably bit 7 is a convenience for other
  219.             purposes. Bit 7 is reset to zero after the mode set.
  220.             bit 6:  =1 if display switching enabled, =0 if disabled
  221.             bit 5:  reserved
  222.             bit 4:  [VGA]  =1 if to use 400-line mode at next mode set
  223.                    =0 if to emulate EGA at next mode set
  224.                       This bit set to 1 after the mode set.
  225.                 [MCGA] =1 use 400-line mode at next mode set
  226.                    =0 emulate CGA, digital monitor, 200 lines,
  227.                       8 x 8 text font at next mode set
  228.                       Bit unchanged by mode set.
  229.             bit 3:  =0 if default palette loading enabled at mode set
  230.             bit 2:  =1 if mono display, =0 if color display
  231.             bit 1:  =1 if gray scale summing enabled, =0 if disabled
  232.             bit 0:  [VGA] =1 if VGA active, =0 if not
  233.                 [MCGA] reserved, zero
  234.         Note: the Tseng ET4000 BIOS v3.00 uses bits 6-4 of 88h and
  235.             bits 6-5 of 89h to specify graphics-mode refresh
  236.             rates as follows
  237.                 88h/6        640x480:  1 for 72Hz, 0 for 60Hz
  238.                 88h/5+89h/6    800x600:  00  60Hz
  239.                               01  56Hz
  240.                               11  72Hz
  241.                 88h/4+89h/5    1024x768: 00  interlaced
  242.                               01  60Hz
  243.                               10  72Hz???
  244.                               11  70Hz
  245.  8Ah    BYTE    Video [MCGA/VGA]: index into Display Combination Code table
  246.  8Bh    BYTE    Diskette media control [not XT]:
  247.             bits 7-6: Last data rate set by controller:
  248.                   00=500kbps, 01=300kbps, 10=250kbps, 11=reserved
  249.             bits 5-4: Last diskette drive step rate selected
  250.             bits 3-2: {Data rate at start of operation}
  251.             bits 1-0: reserved
  252.  8Ch    BYTE    Fixed disk controller status [not XT]
  253.  8Dh    BYTE    Fixed disk controller Error Status [not XT]
  254.  8Eh    BYTE    Fixed disk Interrupt Control [not XT]
  255.         cleared to 00h at start of disk operation, set to FFh by IRQ14
  256.         handler when hard disk controller completes command
  257.  8Fh    BYTE    Diskette controller information [not XT]:
  258.             bit 7:  reserved
  259.             bit 6:  =1 drive 1 determined
  260.             bit 5:  =1 drive 1 is multi-rate, valid if drive determined
  261.             bit 4:  =1 drive 1 supports 80 tracks, always valid
  262.             bit 3:  reserved
  263.             bit 2:  =1 drive 0 determined
  264.             bit 1:  =1 drive 0 is multi-rate, valid if drive determined
  265.             bit 0:  =1 drive 0 supports 80 tracks, always valid
  266.  90h    BYTE    Diskette drive 0 media state
  267.  91h    BYTE    Diskette drive 1 media state
  268.             bits 7-6: Data rate: 00=500kbps, 01=300kbps, 10=250kbps
  269.             bit       5: =1 if double stepping reqd (e.g. 360kB in 1.2MB)
  270.             bit       4: =1 if media established
  271.             bit       3: reserved
  272.             bits 2-0: on exit from BIOS, contain:
  273.                 000 trying 360kB in 360kB
  274.                 001 trying 360kB in 1.2MB
  275.                 010 trying 1.2MB in 1.2MB
  276.                 011 360kB in 360kB established
  277.                 100 360kB in 1.2MB established
  278.                 101 1.2MB in 1.2MB established
  279.                 110 reserved
  280.                 111 all other formats/drives
  281.  92h    BYTE    Diskette drive 0 media state at start of operation
  282.  93h    BYTE    Diskette drive 1 media state at start of operation
  283.  94h    BYTE    Diskette drive 0 current track number
  284.  95h    BYTE    Diskette drive 1 current track number
  285.  96h    BYTE    Keyboard status byte 1
  286.             bit 7 =1 read-ID in progress
  287.             bit 6 =1 last code read was first of two ID codes
  288.             bit 5 =1 force Num Lock if read-ID and enhanced keyboard
  289.             bit 4 =1 enhanced keyboard installed
  290.             bit 3 =1 Right Alt pressed
  291.             bit 2 =1 Right Ctrl pressed
  292.             bit 1 =1 last code read was E0h
  293.             bit 0 =1 last code read was E1h
  294.  97h    BYTE    Keyboard status byte 2
  295.             bit 7 =1 keyboard transmit error flag
  296.             bit 6 =1 LED update in progress
  297.             bit 5 =1 RESEND received from keyboard
  298.             bit 4 =1 ACK received from keyboard
  299.             bit 3 reserved, must be zero
  300.             bit 2 Caps Lock LED
  301.             bit 1 Num Lock LED
  302.             bit 0 Scroll Lock LED
  303.  98h    DWORD    Timer2: [AT, PS exc Mod 30] ptr to user wait-complete flag
  304.                         (see INT 15, AX=8300h)
  305.  9Ch    DWORD    Timer2: [AT, PS exc Mod 30] user wait count in microseconds
  306.  A0h    BYTE    Timer2: [AT, PS exc Mod 30] Wait active flag:
  307.             bit 7 =1 wait time elapsed
  308.             bits 6-1 reserved
  309.             bit 0 =1 INT 15h, AH=86h has occurred
  310.  A1h  7 BYTEs    reserved for network adapters (oh really?)
  311.  A4h    DWORD    [PS/2 Mod 30] Saved Fixed Disk Interrupt Vector
  312.  A8h    DWORD    Video: EGA/MCGA/VGA ptr to Video Save Pointer Table (see below)
  313.  ACh-AFh    reserved
  314.  B0h    BYTE    (Phoenix 386 BIOS 1.10 10a) loop count for hard disk timeout
  315.           and delaying when beeping due to full keyboard buffer
  316.  B0h    DWORD    ptr to 3363 Optical disk driver or BIOS entry point.
  317.             When 3363 BIOS present, the signature "OPTIC ",00h occurs 3
  318.             bytes beyond this entry point.
  319.             When 3363 BIOS and 3363 File System Driver present, the
  320.             signature "FILE SYSTEM DRIVER",00h occurs 3 bytes beyond
  321.             this entry point.
  322.  B4h    WORD    reserved
  323.  B6h  3 BYTEs    reserved for POST?
  324.  B9h  7 BYTEs    ???
  325.  C0h 14 BYTEs    reserved
  326.  CEh    WORD    count of days since last boot???
  327.  D0h-EFh    reserved
  328.  D0h    BYTE    [Digiboard MV/4] length of data table
  329.  D1h    BYTE    [Digiboard MV/4] product ID
  330.  D2h    WORD    [Digiboard MV/4] base address found
  331.  D4h    BYTE    [Digiboard MV/4] ports
  332.  D5h    BYTE    [Digiboard MV/4] IRQ
  333.  D6h    WORD    [Digiboard MV/4] keyboards found
  334.  D8h    WORD    [Digiboard MV/4] mice found
  335.  DAh    BYTE    [Digiboard MV/4] current port (used by VGA initialization only)
  336.  DBh    BYTE    [Digiboard MV/4] master 8259 mask (used by VGA init only)
  337.  DCh    BYTE    [Digiboard MV/4] slave 8259 mask (used by VGA init only)
  338.  F0h-FFh    reserved for user
  339. 100h    BYTE    Print Screen Status byte
  340. 10Eh    BYTE    state of BREAK at start of BASICA.COM execution
  341. 10Fh    BYTE    flag: 02h if BASICA v2.10 running
  342. 116h    DWORD    INT 1Bh at start of BASICA.COM execution
  343. 11Ah    DWORD    INT 24h at start of BASICA.COM execution
  344.  
  345. Format of Extended BIOS Data Area (see 40:0Eh for ptr) [PS only]
  346. Offset    Size    Description
  347.  00h    BYTE    Length of EBDA in kilobytes
  348.  01h 15 BYTEs    reserved
  349.  17h    BYTE    Number of entries in POST error log (0-5)
  350.  18h  5 WORDs    POST error log (each word is a POST error number)
  351.  19h-21h    reserved
  352.  22h    DWORD    Pointing Device Driver entry point
  353.  26h    BYTE    Pointing Device Flags 1
  354.            bit 7:    =1 command in progress
  355.            bit 6:    =1 resend
  356.            bit 5:    =1 acknowledge
  357.            bit 4:    =1 error
  358.            bit 3:    =0 reserved
  359.            bits 2-0: index count
  360.  27h    BYTE    Pointing Device Flags 2
  361.            bit 7:    =1 device driver far call flag
  362.            bits 6-3: reserved
  363.            bits 2-0: package size
  364.  28h  7 BYTEs    Pointing Device Auxiliary Device Data
  365.  2Fh    BYTE    reserved
  366.  30h    DWORD    Vector for INT 07h stored here during 80387 interrupt
  367.  34h    DWORD    Vector for INT 01h stored here during INT 07h emulation
  368.  38h    BYTE    Scratchpad for 80287/80387 interrupt code
  369.  39h    WORD    Timer3: Watchdog timer initial count
  370.  3Bh    BYTE    ??? seen non-zero on Model 30
  371.  3Ch    BYTE    ???
  372.  3Dh 16 BYTEs    Fixed Disk parameter table for drive 0 (oh really?)
  373.  4Dh 16 BYTEs    Fixed Disk parameter table for drive 1 (oh really?)
  374.             Neither of above seen on any Model 30, 50, 60 yet.
  375.  5Dh-6Bh    ???
  376.  6Ch    BYTE    Fixed disk: (=FFh on ESDI systems)
  377.             bits 7-4: Channel number 00-0Fh
  378.             bits 3-0: DMA arbitration level 00-0Eh
  379.  6Dh    BYTE    ???
  380.  6Eh    WORD    current typematic setting (see INT 16/AH=03h)
  381.  70h 167 BYTEs    ???
  382. 117h    WORD    keyboard ID (see INT 16/AH=0Ah)
  383. 119h and up:    ??? seen non-zero on Model 60
  384. 3F0h    BYTE    Fixed disk buffer (???!!!)
  385.  
  386. Format of Video Save Pointer Table [EGA/VGA/MCGA only]:
  387. Offset    Size    Description
  388.  00h    DWORD    ptr to Video Parameter Table
  389.  04h    DWORD    ptr to Parameter Dynamic Save Area, else 0 [EGA/VGA only]
  390.  08h    DWORD    ptr to Alphanumeric Character Set Override, else 0
  391.  0Ch    DWORD    ptr to Graphics Character Set Override, else 0
  392.  10h    DWORD    [VGA only] ptr to Secondary Save Pointer Table, must be valid
  393.  14h    DWORD    reserved, zero
  394.  18h    DWORD    reserved, zero
  395. Note: table initially in ROM, copy to RAM to alter, then update 40h:A8h.
  396.  
  397. Format of Secondary Video Save Pointer Table [VGA only]:
  398. Offset    Size    Description
  399.  00h    WORD    Length of this table in bytes, including this word (1Ah)
  400.  02h    DWORD    ptr to Display Combination Code Table, must be valid
  401.  06h    DWORD    ptr to second Alphanumeric Character Set Override, else 0
  402.  0Ah    DWORD    ptr to User Palette Profile Table, else 0
  403.  0Eh    DWORD    reserved, zero
  404.  12h    DWORD    reserved, zero
  405.  16h    DWORD    reserved, zero
  406. Note: table initially in ROM, copy to RAM to alter, then alter Save Ptr Table.
  407.  
  408. Format of Video Parameter Table [EGA, VGA only]:
  409. An array of 23 [EGA] or 29 [VGA] elements, each element being 64 bytes long.
  410. Elements appear in the order:
  411.  00h-03h    Modes 00h-03h in 200-line CGA emulation mode
  412.  04h-0Eh    Modes 04h-0Eh
  413.  0Fh-10h    Modes 0Fh-10h when only 64kB RAM on adapter
  414.  11h-12h    Modes 0Fh-10h when >64kB RAM on adapter
  415.  13h-16h    Modes 00h-03h in 350-line mode
  416.  17h        VGA Modes 00h or 01h in 400-line mode
  417.  18h        VGA Modes 02h or 03h in 400-line mode
  418.  19h        VGA Mode  07h in 400-line mode
  419.  1Ah-1Ch    VGA Modes 11h-13h
  420.  
  421. Format of Video Parameter Table element [EGA, VGA only]:
  422. Offset    Size    Description
  423.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  424.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  425.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  426.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  427.  05h  4 BYTEs    Values for Sequencer Registers 1-4
  428.  09h    BYTE    Value for Miscellaneous Output Register
  429.  0Ah 25 BYTEs    Values for CRTC Registers 00h-18h
  430.  23h 20 BYTEs    Values for Attribute Controller Registers 00h-13h
  431.  37h  9 BYTEs    Values for Graphics Controller Registers 00h-08h
  432.  
  433. Format of Video Parameter Table [MCGA only] {guesswork from inspection}:
  434.     - 16 triplet BYTEs of R,G,B DAC info for 16 colors;
  435.     - An array of 11 elements, each element being 32 bytes long.
  436.       Elements appear in the order:
  437.         Modes 00h,01h in 200-line mode for digital displays
  438.         Modes 00h,01h in 400-line mode for analog displays
  439.         Modes 02h,03h in 200-line mode for digital displays
  440.         Modes 02h,03h in 400-line mode for analog displays
  441.         Modes 04h,05h in 200-line mode for digital displays
  442.         Modes 04h,05h in 400-line mode for analog displays
  443.         Mode  06h in 200-line mode for digital displays
  444.         Mode  06h in 400-line mode for analog displays
  445.         Mode  11h
  446.         Mode  13h in 200-line mode for digital displays
  447.         Mode  13h in 400-line mode for analog displays
  448.  
  449. Format of Video Parameter Table element [MCGA only]:
  450. Offset    Size    Description
  451.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  452.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  453.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  454.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  455.  05h    WORD    ??? always zero
  456.  07h 21 BYTEs    Video data registers 00h-14h to port 3D5h indexed by 3D4h
  457.  1Ch    BYTE    PEL Mask to port 3C6h
  458.  1Dh    BYTE    CGA Mode Control to port 3D8h
  459.  1Eh    BYTE    CGA Border Control to port 3D9h
  460.  1Fh    BYTE    Extended Mode Control to port 3DDh
  461.  
  462. Format of Video Parameter Dynamic Save Area [EGA, VGA only]:
  463. Offset    Size    Description
  464.  00h 16 BYTEs    Last data written to Attribute Controller Palette Registers 0-15
  465.  10h    BYTE    Last data written to Attribute Controller Overscan Register
  466.  11h-FFh    Reserved
  467.         Note: Need for table was that EGA registers were write-only.
  468.         Note: If default values (from the Video Parameter Table) are
  469.               over-ridden at a mode set by the VGA User Palette Profile
  470.               Table, then the Dynamic Save Area is updated with the
  471.               default values, not the User Profile ones.
  472.  
  473. Format of Alphanumeric Character Set Override:
  474. Offset    Size    Description
  475.  00h    BYTE    Length in bytes of each character in font table
  476.  01h    BYTE    Character generator RAM bank to load, 0=normal
  477.  02h    WORD    Number of characters in font table, normally 256
  478.  04h    WORD    Code of first character in font table, normally 0
  479.  06h    DWORD    ptr to font table
  480.  0Ah    BYTE    Displayable rows (FFh=use maximum calculated value)
  481.  0Bh    BYTEs    Array of mode values to which this font is to pertain
  482.     BYTE    FFh end of array
  483.  
  484. Format of Second Alphanumeric Character Set Override:
  485. Authorities differ, some say same as first override above, but IBM say:
  486. Offset    Size    Description
  487.  00h    BYTE    Length in bytes of each character in font table
  488.  01h    BYTE    Character generator RAM bank to load, normally non-zero
  489.  02h    BYTE    reserved
  490.  03h    DWORD    ptr to font table
  491.  07h    BYTEs    Array of mode values to which this font is to pertain
  492.     BYTE    FFh end of array
  493.  
  494. Format of Graphics Character Set Override:
  495. Offset    Size    Description
  496.  00h    BYTE    Number of displayable character rows
  497.  01h    WORD    Length in bytes of each character in font table
  498.  03h    DWORD    ptr to font table
  499.  07h    BYTEs    Array of mode values to which this font is to pertain
  500.     BYTE    FFh end of array
  501.  
  502. Format of Display Combination Code Table [VGA only]:
  503. Offset    Size    Description
  504.  00h    BYTE    Number of entries in the DCC table at offset 04h
  505.  01h    BYTE    Version number
  506.  02h    BYTE    Maximum display type code that can appear in DCC table
  507.  03h    BYTE    reserved
  508.  04h    ARRAY OF 2 BYTEs Each pair of bytes gives a valid display combination
  509.             Meaning of each byte:
  510.             00h    no display
  511.             01h    MDA with mono display
  512.             02h    CGA with color display
  513.             03h    reserved
  514.             04h    EGA with color display
  515.             05h    EGA with mono display
  516.             06h    Professional Graphics Controller
  517.             07h    VGA with mono display
  518.             08h    VGA with color display
  519.             09h    reserved
  520.             0Ah    MCGA with digital color display
  521.             0Bh    MCGA with analog mono display
  522.             0Ch    MCGA with analog color display
  523.             FFh    unrecognised video system
  524.  
  525. Format of User Palette Profile Table [VGA only]:
  526. Offset    Size    Description
  527.  00h    BYTE    Underlining: 01h=enable in all alphanumeric modes
  528.                  00h=enable in monochrome alphanumeric modes only
  529.                  FFh=disable in all alphanumeric modes
  530.  01h    BYTE    reserved
  531.  02h    WORD    reserved
  532.  04h    WORD    Number (0-17) of Attribute Controller registers in table
  533.  06h    WORD    Index (0-16) of first Attribute Controller register in table
  534.  08h    DWORD    ptr to table of Attribute Controller registers to override
  535.             Table is an array of BYTEs.
  536.  0Ch    WORD    Number (0-256) of video DAC Color registers in table
  537.  0Eh    WORD    Index (0-255) of first video DAC Color register in table
  538.  10h    DWORD    ptr to table of video DAC Color registers to override
  539.             Table is ??? triplets ??? of BYTEs???
  540.  14h    BYTEs    array of mode values to which this profile is to pertain
  541.     BYTE    FFh end of array
  542.